#include <bits/stdc++.h>
#include <string>

using namespace std;

int main(){
    int n;
    cin >> n;

    while (n--){
        string s;
        cin >> s;

        bool ans = true;

        int i = 0,j = s.size() - 1;
        while (i < j){
            if (s[i++] != s[j--]){
                ans = false;
            }
        }
        if (ans){
            cout << "yes" << endl;
        }
        else{
            cout << "no" << endl;
        }
    }

    return 0;
}